import com.s05.e01.model.User;


public class MyStaticAndInstance {

	public static void main(String[] args) {

		String[] strings = {"Grzes,Solecki,1977-01-11", 
				"Mariusz,Pieczka,1968-05-23", 
				"David,McDonnel,1979-12-24" };
		User[] users = new User[strings.length];

		for (int i = 0; i < strings.length; i++) {
			String string = strings[i];
			
			User user = User.parse(string);
			users[i] = user;
		}
		
		for (User user : users) {
			user.greetYourself();
		}
	}
}
